package com.infore.airsupervise.bean;

import com.chad.library.adapter.base.entity.SectionEntity;
import com.infore.airsupervise.R;
import com.infore.airsupervise.app.StatusConst;
import com.infore.airsupervise.ui.activity.NewMissionListActivity;
import com.infore.airsupervise.ui.activity.SiteDraftListActivity;
import com.infore.airsupervise.ui.activity.SiteEvidenceCreateActivity;
import com.infore.airsupervise.ui.activity.SiteLedgerListActivity;
import com.infore.airsupervise.ui.activity.SiteMainCreateActivity;
import com.infore.airsupervise.ui.activity.LicenseSearchActivity;
import com.infore.airsupervise.ui.activity.PolluterSearchActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * @features:
 * @author: WuTao
 * @date: 2017/5/4 16:09
 */
public class LawMenuE extends SectionEntity<MenuE> {

    public LawMenuE(boolean isHeader, String header) {
        super(isHeader, header);
    }

    public LawMenuE(MenuE menuE) {
        super(menuE);
    }

    public static List<LawMenuE> getLawMenuEList(){
        List<LawMenuE> list = new ArrayList<>();
        LawMenuE item1 = new LawMenuE(true,"任务管理");
        LawMenuE missioning = new LawMenuE(new MenuE(StatusConst.MISSION_DB, R.drawable.ic_menu_law_db,
                "待办任务", "查看需要处理的任务，实时跟进", NewMissionListActivity.class));
        missioning.t.setBadgeCount(2);
        LawMenuE missioned = new LawMenuE(new MenuE(StatusConst.MISSION_YB, R.drawable.ic_menu_law_yb,
                "已办任务", "查看已经完结的任务，掌握进度", NewMissionListActivity.class));
        LawMenuE examineing = new LawMenuE(new MenuE(StatusConst.MISSION_DS, R.drawable.ic_menu_law_ds,
                "待审任务", "审核任务，一目了然", NewMissionListActivity.class));
        LawMenuE examined = new LawMenuE(new MenuE(StatusConst.MISSION_YS, R.drawable.ic_menu_law_ys,
                "已审任务", "历史纪录，随时查看", NewMissionListActivity.class));
        LawMenuE mission = new LawMenuE(new MenuE(StatusConst.MISSION_ZP, R.drawable.ic_menu_law_zp,
                "指派任务", "随时随地发布任务，及时调派", NewMissionListActivity.class));

        LawMenuE item2 = new LawMenuE(true,"现场执法");
        LawMenuE createRecorder = new LawMenuE(  new MenuE(4, R.drawable.ic_menu_law_zbl,
                "做笔录", "现场检查记录情况，准确把握,不遗漏", SiteMainCreateActivity.class));
        LawMenuE siteEvidence = new LawMenuE(  new MenuE(5, R.drawable.ic_menu_law_qz,
                "现场取证", "拍照、录音、视频", SiteEvidenceCreateActivity.class));
        LawMenuE manusript = new LawMenuE(  new MenuE(6, R.drawable.ic_menu_law_cg,
                "草稿箱", "保存笔录，取证", SiteDraftListActivity.class));
        LawMenuE infoRecorder = new LawMenuE(  new MenuE(7, R.drawable.ic_menu_law_tz,
                "执法台账", "查看执法台账，记录", SiteLedgerListActivity.class));
        LawMenuE item3 = new LawMenuE(true, "信息检索");
        LawMenuE source = new LawMenuE(new MenuE(8, R.drawable.ic_menu_law_zqy,
                "找企业", "准确查找企业、污染源信息", PolluterSearchActivity.class));
        LawMenuE lisence =  new LawMenuE(new MenuE(9, R.drawable.ic_menu_law_sc,
                "许可证查询", "企业相关的排污许可证", LicenseSearchActivity.class));
        list.add(item1);
        list.add(missioning);
        list.add(missioned);
        list.add(examineing);
        list.add(examined);
        list.add(mission);
        list.add(item2);
        list.add(createRecorder);
        list.add(siteEvidence);
        list.add(manusript);
        list.add(infoRecorder);
        list.add(item3);
        list.add(source);
        list.add(lisence);
        return list;

    }
}
